package s17;

import base.Bean2;
import net.sf.cglib.reflect.ConstructorDelegate;

/**
 * @author wangpp
 */
public class ConstructorDelegateTest {
    public static void main(String[] args) {
        IConst delegate = (IConst) ConstructorDelegate.create(Bean2.class, IConst.class);
        Bean2 h = (Bean2) delegate.newInstance("hello constructor");
        System.out.println(h.getValue());
    }
}
